<?php

if (is_numeric($_POST['id'])) {
	$db->update('blog_categories', array('title' => $_POST['title'], 'path' => make_path($_POST['title'])), $db->quoteInto('id=?', $_POST['id']));
	header('Content-type: application/json');
	echo json_encode(array('id' => $_POST['id']));
}
